<?php


namespace App\Models\Select;

class CommentSelect extends BaseSelect
{
    public const HaveAuthorReply = 'haveAuthorReply';

    public static function getSelects($scene): array
    {
        $baseSelects = [
            'id',
            'comment_id',
            'user_id',
            'target_id',
            'target_type',
            'content',
            'is_deleted',
            'created_at',
        ];

        $selects = [
            self::HaveAuthorReply => [
                'id',
                'comment_id',
                'have_author_reply',
            ]
        ];
        return $selects[$scene] ?? $baseSelects;
    }
}
